<%@ page import="cn.webrx.listener.OnlineCounter" %>
<%@ page language="java" pageEncoding="utf-8" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>项目首页</title>
</head>
<body>
<%
    out.print(String.format("<h1>在线%d人</h1>", OnlineCounter.online.size()));
    out.print(String.format("<h1>会员%d人</h1>", OnlineCounter.mems.size()));
    for(String m :OnlineCounter.mems){
        out.print(String.format("<p>%s</p>",m));
    }
    out.print(String.format("<h1>游客%d人</h1>", OnlineCounter.online.size()-OnlineCounter.mems.size()));
%>

<p>
    <%
        //1800 s 30分钟
        out.print(session.getMaxInactiveInterval());
    %>
</p>

<a href="member.jsp">会员中心</a>
</body>
</html>
